package com.baosight.controller;

import java.util.List;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


import com.baosight.service.HelloService;



@RestController
public class Contorller {


	
	@Autowired
    HelloService helloService;
	
	@RequestMapping("/ribbon")
	public String ribbon(){
		
		 return helloService.hiService();
	}
	
	@RequestMapping("/list")
	public List home(){
		 return helloService.home();
	}
	
	@RequestMapping(value = "/{id}", method = RequestMethod.GET)
	public List getInfo(@PathVariable String id) {
		 return helloService.getInfo(id);
	}
	
}
